Skip to content

fix(build): update Robolectric to 4.18.1 for Linux arm64 - #206

Merged
Tarquinen merged 1 commit into
devfrom
robolectric-arm64
Nov 20, 2026
Merged

Tarquinen merged 1 commit into
devfrom
robolectric-arm64

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Fixes #194

Robolectric 4.16 has no native runtime for Linux arm64, so every @GraphicsMode(NATIVE) test fails there. 4.18 adds one (release notes). This updates Robolectric to 4.18.1 and the API 35 android-all-instrumented jar to the build its DefaultSdkProvider expects (API 34 is unchanged), plus the two parity docs that name the version.

scripts/check.sh passes on the VM with 3,667 tests, 0 failures and 3 skipped, the same tests and results as dev. The VM is x86_64, so I checked arm64 in an emulated aarch64 JDK 17 container: ImageDrawingTests fails with 4.16 as reported, and the media native graphics tests pass with 4.18.1. The full suite on real arm64 hardware relies on the reporter's run.

Thanks @kacigaya for the diagnosis.

Robolectric 4.16 has no native runtime for Linux aarch64, so every
@GraphicsMode(NATIVE) test failed at startup there. 4.18 adds the
aarch64 libraries (nativeruntime-dist-compat 1.0.20). 4.18.1's
DefaultSdkProvider expects android-all-instrumented 15-robolectric-14663667-2-i7
for API 35; API 34 is unchanged. The parity docs that name the version
are updated too.

Verified: scripts/check.sh passes on the Android VM (x86_64) with 3,667
tests, 0 failures, 3 skipped, the same tests and statuses as dev. On
aarch64 (Temurin 17 under qemu), ImageDrawingTests failed with 4.16 as
reported and the media native graphics classes pass with 4.18.1 (21/21).
@Tarquinen
Tarquinen merged commit ceaa16a into dev Nov 20, 2026
4 of 5 checks passed
@Tarquinen
Tarquinen deleted the robolectric-arm64 branch November 20, 2026 18:14
@kacigaya

Copy link
Copy Markdown

You're welcome! I'd love to contribute more to the project. Would you be open to having me as a regular contributor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native graphics unit tests fail on Linux arm64 (Robolectric 4.16)

2 participants